package cn.itcast.dao;

import cn.itcast.pojo.Member;
import com.github.pagehelper.Page;
import java.util.List;

public interface MemberDao {
    public List<Member> findAll();
    public Page<Member> selectByCondition(String queryString);
    public void add(Member member);
    public void deleteById(Integer id);
    public Member findById(Integer id);
    /**
     * 根据Id更新会员基本信息
     *
     * @param member
     */
    void update(Member member);

    public Integer findMemberCountBeforeDate(String date);
    public Integer findMemberCountByDate(String date);
    public Integer findMemberCountAfterDate(String date);
    public Integer findMemberTotalCount();
    Member findByphoneNumber(String phone);
    void saveMember(Member member);
}
